package service.impl;
//混淆加密 业务层
import dao.UserDao;
import dao.impl.UserDaoImpl;
import pojo.User;
import service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {

    UserDao userdao=new UserDaoImpl();

    @Override
    public int addUser(User user) {
        return userdao.addUser(user);
    }

    @Override
    public List<User> findAll(User user) {

        List<User> users=userdao.findAll(user);
        return users;
    }

    @Override
    public User findById(Integer id) {
        return userdao.findById(id);
    }

    @Override
    public int updateUser(User user) {
        return userdao.updateUser(user);
    }

    @Override
    public int deleteUserById(Integer id) {
        return userdao.deleteUserById(id);
    }
}
